#include <stdio.h>
int main(int argc, char const *argv[])
{
    int a, b, c, max, min,t;
    printf("请输入第一个数：");
    scanf("%d", &a);
    printf("请输入第二个数：");
    scanf("%d", &b);
    printf("请输入第三个数：");
    scanf("%d", &c);
    printf("a=%d,b=%d,c=%d\n",a,b,c);

    // MAX
    t = (a > b) ? a : b;
    max = (t > c) ? t : c;
    printf("max=%d\n", max);

    // MIN
    t = (a < b) ? a : b;
    min = (t < c) ? t : c;
    printf("min=%d\n", min);

    return 0;
}
